# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from django.conf.urls.defaults import *
from ebp.views import submit_ebp_form, get_ebp_list, delete_ebp_order, \
    goto_login_page, logout, goto_ebp_form_with_token, goto_ebp_form, \
    get_or_submit_config, delete_config
from views.hello import helloworld, current_datetime, hours_ahead, display_meta
#from views.home import homepage

urlpatterns = patterns('',
    (r'^$', goto_login_page),  
    (r'^login/$', goto_login_page),
    (r'^logout/$', logout),                 
    (r'^hello/$', helloworld),
    (r'^now/$', current_datetime),
    (r'^now/plus/(\d{1,2})/$',hours_ahead),
    (r'^ebp/$', get_ebp_list),
    (r'^ebp/delete/([a-aA-Z0-9]+)/$',delete_ebp_order),
    (r'^ebpform/$', goto_ebp_form),
    (r'^ebpform/([a-zA-Z0-9]+)/$',goto_ebp_form_with_token),
    (r'^submitebp/$', submit_ebp_form),
    (r'^getmeta/$',display_meta),
    (r'^config/$', get_or_submit_config),
    (r'^config/delete/([a-zA-Z0-9]+)/$',delete_config),
    # Example:
    # (r'^foo/', include('foo.urls')),

    # Uncomment this for admin:
#     (r'^admin/', include('django.contrib.admin.urls')),
)
